
Page({
  data: {
    menuIndex: 0,
    isPull: false
  },
  changeSelectedFn(e) {
    console.log(e);
    this.setData({
      menuIndex: e.mark.id
    })
  },
  onRefresherrefresh(e) {
    console.log(e, 1111);
     // 请求最新的数据
		wx.request({
      url: 'https://hmajax.itheima.net/api/books',
      data: {creator: 'zhangsan'},
      success: (result) => {},
      complete: () => {
        // 停止下拉刷新
        this.setData({isPull: false})
      }
    })
  },
  onScrolltolower() {
    console.log('加载下一页');
  },
  onLoad(params) {
    console.log('我是onLoad', params);
  },
  onShow() {
    console.log('我是页面的onShow');
  },
  onHide() {
    console.log('我是页面的onHide');
  }
})
